<?php
App::uses('AppModel', 'Model');
/**
 * Trabajo Model
 *
 * @property User $User
 * @property Cliente $Cliente
 * @property Sucursale $Sucursale
 * @property Estadostrabajo $Estadostrabajo
 * @property Hojasproduccione $Hojasproduccione
 * @property Hojasruta $Hojasruta
 * @property Micra $Micra
 * @property Myhojasruta $Myhojasruta
 * @property Notaentrega $Notaentrega
 * @property Notaremisione $Notaremisione
 * @property Ordenespedido $Ordenespedido
 * @property Notaremisione $Notaremisione
 */
class Trabajo extends AppModel {


	//The Associations below have been created with all possible keys, those that are not needed can be removed

/**
 * belongsTo associations
 *
 * @var array
 */
	public $belongsTo = array(
		'User' => array(
			'className' => 'User',
			'foreignKey' => 'user_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Cliente' => array(
			'className' => 'Cliente',
			'foreignKey' => 'cliente_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Sucursale' => array(
			'className' => 'Sucursale',
			'foreignKey' => 'sucursale_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Estadostrabajo' => array(
			'className' => 'Estadostrabajo',
			'foreignKey' => 'estadostrabajo_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

/**
 * hasMany associations
 *
 * @var array
 */
	public $hasMany = array(
		'Hojasproduccione' => array(
			'className' => 'Hojasproduccione',
			'foreignKey' => 'trabajo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Hojasruta' => array(
			'className' => 'Hojasruta',
			'foreignKey' => 'trabajo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Inventario' => array(
			'className' => 'Movimientostrabajo',
			'foreignKey' => 'trabajo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Myhojasruta' => array(
			'className' => 'Myhojasruta',
			'foreignKey' => 'trabajo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Notaentrega' => array(
			'className' => 'Notaentrega',
			'foreignKey' => 'trabajo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Notaremisione' => array(
			'className' => 'Notaremisione',
			'foreignKey' => 'trabajo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Ordenespedido' => array(
			'className' => 'Ordenespedido',
			'foreignKey' => 'trabajo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Notaremisione' => array(
			'className' => 'Notaremisione',
			'foreignKey' => 'trabajo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

}
